<template>
  <div id="scroll-board">
    <dv-scroll-board :config="config" @click="clickRow" />
  </div>
</template>

<script>

export default {
  name: 'ScrollBoard',
  props: {
    config: {
      type: Object,
      default: () => ({})
    }

  },
  data() {
    return {
    };
  },
  methods: {
    clickRow(data) {
      console.log(data);
      const params = {
        isHideLeft: '1',
        isHideTop: '1',
        flag: 0,
        name: data.row[0]
      };
      this.$router.push({
        path: '/frqox',
        query: params
      });
    }
  }

};
</script>

<style lang="scss" scoped>
#scroll-board {
  box-sizing: border-box;
  height: 100%;
  overflow: hidden;
  width: 290px
}
.dv-scroll-board {
    position: relative;
    width: 100%;
    height: calc(23vh);
    color: #fff;
}
#scroll-board /deep/ .dv-scroll-board .header .header-item {
    padding: 0 10px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    font-size: 10px !important;
    text-align: center;
    color: #fff;
    font-size: 18px !important;
    font-weight: normal !important;
}
#scroll-board /deep/  .dv-scroll-board .rows .row-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-size: 14px;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    // background-color: #0b2040c2 !important;
    margin: 10px 0px;
}
#scroll-board /deep/ .dv-scroll-board .header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    font-size: 15px;
    background: #207af50d !important;
}
#scroll-board /deep/ .dv-scroll-board .rows .ceil {
    padding: 0 10px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center !important;
    font-size: 10px !important;

}
</style>
